home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume8 / libhoward / part09 < prev    next >
Encoding:
Text File  |  1989-09-30  |  42.7 KB  |  1,431 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v08i087: libhoward portability library, part 9 of 9
  3. from: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  4. Reply-To: howard@dahlbeck.ericsson.se (Howard Gayle)
  5.  
  6. Posting-number: Volume 8, Issue 87
  7. Submitted-by: howard@dahlbeck.ericsson.se (Howard Gayle)
  8. Archive-name: libhoward/part09
  9.  
  10. #! /bin/sh
  11. # This is a shell archive.  Remove anything before this line, then feed it
  12. # into a shell via "sh file" or similar.  To overwrite existing files,
  13. # type "sh file -c".
  14. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  15. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  16. # If this archive is complete, you will see the following message at the end:
  17. #        "End of archive 9 (of 9)."
  18. # Contents:  FREEZE.c a2.h b.bib cat-path.b freeze.b freeze0.b getopt.c
  19. #   latin-lt.tex lnR.b mkAr.b mkCIncl.b mkDistI.b mkDistO.b mkInstF.b
  20. #   mkInstX.b mkLaTeXPS.b mkLibIncl.b mkManPS.b mkSpellLT.b
  21. #   mkUncmprs.b new-bib.b new-el.b new-h.b new.b smp.h unix-lt.tex
  22. #   version.h year.h
  23. # Wrapped by howard@hasse on Mon Sep 25 07:08:18 1989
  24. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  25. if test -f 'FREEZE.c' -a "${1}" != "-c" ; then 
  26.   echo shar: Will not clobber existing file \"'FREEZE.c'\"
  27. else
  28. echo shar: Extracting \"'FREEZE.c'\" \(138 characters\)
  29. sed "s/^X//" >'FREEZE.c' <<'END_OF_FILE'
  30. X/* $Header: FREEZE.c,v 1.1 89/08/05 08:46:25 howard Exp $ */
  31. X#include "FREEZE.i"
  32. X#ifndef lint
  33. Xstatic char _frz_id[] = FRZ_ID;
  34. X#endif lint
  35. END_OF_FILE
  36. if test 138 -ne `wc -c <'FREEZE.c'`; then
  37.     echo shar: \"'FREEZE.c'\" unpacked with wrong size!
  38. fi
  39. # end of 'FREEZE.c'
  40. fi
  41. if test -f 'a2.h' -a "${1}" != "-c" ; then 
  42.   echo shar: Will not clobber existing file \"'a2.h'\"
  43. else
  44. echo shar: Extracting \"'a2.h'\" \(1397 characters\)
  45. sed "s/^X//" >'a2.h' <<'END_OF_FILE'
  46. X/*
  47. X * a2 - declare conversion functions from Ada-syntax integer literals
  48. X *
  49. X * Copyright 1989 Howard Lee Gayle
  50. X *
  51. X * $Header: a2.h,v 1.4 89/06/22 15:11:58 howard Exp $
  52. X *
  53. X * This program is free software; you can redistribute it and/or modify
  54. X * it under the terms of the GNU General Public License version 1,
  55. X * as published by the Free Software Foundation.
  56. X *
  57. X * This program is distributed in the hope that it will be useful,
  58. X * but WITHOUT ANY WARRANTY; without even the implied warranty of
  59. X * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  60. X * GNU General Public License for more details.
  61. X *
  62. X * You should have received a copy of the GNU General Public License
  63. X * along with this program; if not, write to the Free Software
  64. X * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  65. X *
  66. X * Prerequisites: howard/port.h.
  67. X */
  68. X
  69. X/* These return codes: */
  70. XPUBLIC int a2d();  /* To double.*/
  71. XPUBLIC int a2i();  /* To int.*/
  72. XPUBLIC int a2l();  /* To long.*/
  73. XPUBLIC int a2u();  /* To unsigned.*/
  74. XPUBLIC int a2ul(); /* To unsigned long.*/
  75. X
  76. X/* These call malf1() on error: */
  77. XPUBLIC double   ma2d();
  78. XPUBLIC int      ma2i();
  79. XPUBLIC long     ma2l();
  80. XPUBLIC unsigned ma2u();
  81. XPUBLIC ulongT   ma2ul();
  82. X
  83. X/* These call malf1() on error, and include range checking: */
  84. XPUBLIC double   mra2d();
  85. XPUBLIC int      mra2i();
  86. XPUBLIC long     mra2l();
  87. XPUBLIC unsigned mra2u();
  88. XPUBLIC ulongT   mra2ul();
  89. END_OF_FILE
  90. if test 1397 -ne `wc -c <'a2.h'`; then
  91.     echo shar: \"'a2.h'\" unpacked with wrong size!
  92. fi
  93. # end of 'a2.h'
  94. fi
  95. if test -f 'b.bib' -a "${1}" != "-c" ; then 
  96.   echo shar: Will not clobber existing file \"'b.bib'\"
  97. else
  98. echo shar: Extracting \"'b.bib'\" \(1182 characters\)
  99. sed "s/^X//" >'b.bib' <<'END_OF_FILE'
  100. X% b.bib - bibliography
  101. X%
  102. X% Copyright 1989 Howard Lee Gayle
  103. X% This file is written in the ISO 8859/1 character set.
  104. X%
  105. X% $Header: b.bib,v 1.1 89/09/20 12:35:29 howard Exp $
  106. X%
  107. X% This program is free software; you can redistribute it and/or modify
  108. X% it under the terms of the GNU General Public License version 1,
  109. X% as published by the Free Software Foundation.
  110. X%
  111. X% This program is distributed in the hope that it will be useful,
  112. X% but WITHOUT ANY WARRANTY; without even the implied warranty of
  113. X% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  114. X% GNU General Public License for more details.
  115. X%
  116. X% You should have received a copy of the GNU General Public License
  117. X% along with this program; if not, write to the Free Software
  118. X% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  119. X@book{Lapin,
  120. X   author = "J. E. Lapin",
  121. X   title = "Portable C and UNIX system programming",
  122. X   publisher = "Prentice-Hall",
  123. X   year = "1987",
  124. X   address = "Englewood Cliffs, New Jersey"}
  125. X@article{Weiser:Source,
  126. X   author = "Mark Weiser",
  127. X   title = "Source Code",
  128. X   journal = "Computer",
  129. X   year = "1987",
  130. X   volume = "20",
  131. X   number = "11",
  132. X   pages = "66--73",
  133. X   month = "November"}
  134. END_OF_FILE
  135. if test 1182 -ne `wc -c <'b.bib'`; then
  136.     echo shar: \"'b.bib'\" unpacked with wrong size!
  137. fi
  138. # end of 'b.bib'
  139. fi
  140. if test -f 'cat-path.b' -a "${1}" != "-c" ; then 
  141.   echo shar: Will not clobber existing file \"'cat-path.b'\"
  142. else
  143. echo shar: Extracting \"'cat-path.b'\" \(1238 characters\)
  144. sed "s/^X//" >'cat-path.b' <<'END_OF_FILE'
  145. X  
  146. X# cat-path.b - search path for files and concatenate them
  147. X#
  148. X# $Header: cat-path.b,v 1.1 89/09/21 08:01:10 howard Exp $
  149. X#
  150. X# Copyright 1989 Howard Lee Gayle
  151. X# This file is written in the ISO 8859/1 character set.
  152. X#
  153. X# This program is free software; you can redistribute it and/or modify
  154. X# it under the terms of the GNU General Public License version 1,
  155. X# as published by the Free Software Foundation.
  156. X#
  157. X# This program is distributed in the hope that it will be useful,
  158. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  159. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  160. X# GNU General Public License for more details.
  161. X#
  162. X# You should have received a copy of the GNU General Public License
  163. X# along with this program; if not, write to the Free Software
  164. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  165. X#
  166. X# Shell variables:
  167. X# d - directory in path
  168. X# f - steps through files to create
  169. X# p - path to search
  170. X# u - usage string
  171. X
  172. XCMDNAME=cat-path
  173. Xexport CMDNAME
  174. Xu="Usage: $CMDNAME path file..."
  175. Xif [ $# -lt 2 ]
  176. Xthen
  177. X   echo "$u" 1>&2
  178. X   exit 1
  179. Xfi
  180. Xp=`echo "$1" | sed -e 's;:; ;g'`
  181. Xshift
  182. Xfor f
  183. Xdo
  184. X   for d in $p
  185. X   do
  186. X      if [ -r "$d/$f" ]
  187. X      then
  188. X         cat "$d/$f"
  189. X         break
  190. X      fi
  191. X   done
  192. Xdone
  193. END_OF_FILE
  194. if test 1238 -ne `wc -c <'cat-path.b'`; then
  195.     echo shar: \"'cat-path.b'\" unpacked with wrong size!
  196. fi
  197. # end of 'cat-path.b'
  198. fi
  199. if test -f 'freeze.b' -a "${1}" != "-c" ; then 
  200.   echo shar: Will not clobber existing file \"'freeze.b'\"
  201. else
  202. echo shar: Extracting \"'freeze.b'\" \(1384 characters\)
  203. sed "s/^X//" >'freeze.b' <<'END_OF_FILE'
  204. X  
  205. X# freeze - update RCS FREEZE file
  206. X#
  207. X# $Header: freeze.b,v 1.8 89/09/21 19:21:19 howard Exp $
  208. X#
  209. X# Copyright 1989 Howard Lee Gayle
  210. X# This file is written in the ISO 8859/1 character set.
  211. X#
  212. X# This program is free software; you can redistribute it and/or modify
  213. X# it under the terms of the GNU General Public License version 1,
  214. X# as published by the Free Software Foundation.
  215. X#
  216. X# This program is distributed in the hope that it will be useful,
  217. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  218. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  219. X# GNU General Public License for more details.
  220. X#
  221. X# You should have received a copy of the GNU General Public License
  222. X# along with this program; if not, write to the Free Software
  223. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  224. X#
  225. X# Shell variables:
  226. X# u - usage string
  227. X
  228. XCMDNAME=freeze
  229. Xexport CMDNAME
  230. Xu='Usage: $CMDNAME [-rRevision]'
  231. Xif [ $# -gt 1 ]
  232. Xthen
  233. X   echo "$u" 1>&2
  234. X   exit 1
  235. Xfi
  236. Xif [ ! -d RCS ]
  237. Xthen
  238. X   echo '$CMDNAME: no RCS directory' 1>&2
  239. X   exit 1
  240. Xfi
  241. Xif [ -f RCS/FREEZE,v ]
  242. Xthen
  243. X   co -l FREEZE
  244. X   co -p FREEZE | \
  245. X      sed -e '/^========================================$/,$d' > FREEZE
  246. Xelse
  247. X   echo '$''Header$' > FREEZE
  248. X   echo '$''Log$' >> FREEZE
  249. Xfi
  250. Xecho '========================================' >> FREEZE
  251. Xfreeze0 RCS/*,v >> FREEZE
  252. Xci $1 FREEZE < /dev/null && rcs -L FREEZE && co FREEZE
  253. END_OF_FILE
  254. if test 1384 -ne `wc -c <'freeze.b'`; then
  255.     echo shar: \"'freeze.b'\" unpacked with wrong size!
  256. fi
  257. # end of 'freeze.b'
  258. fi
  259. if test -f 'freeze0.b' -a "${1}" != "-c" ; then 
  260.   echo shar: Will not clobber existing file \"'freeze0.b'\"
  261. else
  262. echo shar: Extracting \"'freeze0.b'\" \(1286 characters\)
  263. sed "s/^X//" >'freeze0.b' <<'END_OF_FILE'
  264. X  
  265. X# freeze0 - write name and revision of RCS files
  266. X#
  267. X# $Header: freeze0.b,v 1.6 89/09/21 19:21:28 howard Exp $
  268. X#
  269. X# Copyright 1989 Howard Lee Gayle
  270. X# This file is written in the ISO 8859/1 character set.
  271. X#
  272. X# This program is free software; you can redistribute it and/or modify
  273. X# it under the terms of the GNU General Public License version 1,
  274. X# as published by the Free Software Foundation.
  275. X#
  276. X# This program is distributed in the hope that it will be useful,
  277. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  278. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  279. X# GNU General Public License for more details.
  280. X#
  281. X# You should have received a copy of the GNU General Public License
  282. X# along with this program; if not, write to the Free Software
  283. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  284. X#
  285. X# Shell variables:
  286. X# f - file name
  287. X# u - usage string
  288. X
  289. Xu='Usage: freeze0 file...'
  290. Xif [ $# -eq 0 ]
  291. Xthen
  292. X   echo "$u" 1>&2
  293. X   exit 1
  294. Xfi
  295. Xfor f
  296. Xdo
  297. X   if [ "$f" != RCS/FREEZE,v ]
  298. X   then
  299. X      rlog $f | awk '/^RCS file:/{printf "%-12s", $6}
  300. X/^head:/{printf " %-7s", $2}
  301. X/^date:/{if (!d) {y = substr ($2, 1, 2);
  302. X   if (y < 70) y += 2000; else y += 1900;
  303. X   printf " %d-%s-%s %s\n", y, substr ($2, 4, 2), substr ($2, 7, 2), substr ($3, 1, 8); d = 1;}}'
  304. X   fi
  305. Xdone
  306. END_OF_FILE
  307. if test 1286 -ne `wc -c <'freeze0.b'`; then
  308.     echo shar: \"'freeze0.b'\" unpacked with wrong size!
  309. fi
  310. # end of 'freeze0.b'
  311. fi
  312. if test -f 'getopt.c' -a "${1}" != "-c" ; then 
  313.   echo shar: Will not clobber existing file \"'getopt.c'\"
  314. else
  315. echo shar: Extracting \"'getopt.c'\" \(1290 characters\)
  316. sed "s/^X//" >'getopt.c' <<'END_OF_FILE'
  317. X/*
  318. X * getopt - decode command-line options
  319. X *
  320. X * Public domain code by ATT.  Modified by Henry Spencer.
  321. X */
  322. X
  323. X#include <stdio.h>
  324. X#include <howard/port.h>
  325. X#include <howard/version.h>
  326. X
  327. XMODVER ("@(#)$Header: getopt.c,v 1.1 89/08/29 17:16:53 howard Exp $");
  328. X
  329. X#ifdef NOGETOPT
  330. X
  331. X#include <string.h>
  332. Xchar    *optarg;    /* Global argument pointer. */
  333. Xint    optind = 0;    /* Global argv index. */
  334. X
  335. Xstatic char    *scan = NULL;    /* Private scan pointer. */
  336. X
  337. Xint
  338. Xgetopt(argc, argv, optstring)
  339. Xint argc;
  340. Xchar *argv[];
  341. Xchar *optstring;
  342. X{
  343. X    register char c;
  344. X    register char *place;
  345. X
  346. X    optarg = NULL;
  347. X
  348. X    if (scan == NULL || *scan == '\0') {
  349. X        if (optind == 0)
  350. X            optind++;
  351. X    
  352. X        if (optind >= argc || argv[optind][0] != '-' || argv[optind][1] == '\0')
  353. X            return(EOF);
  354. X        if (strcmp(argv[optind], "--")==0) {
  355. X            optind++;
  356. X            return(EOF);
  357. X        }
  358. X    
  359. X        scan = argv[optind]+1;
  360. X        optind++;
  361. X    }
  362. X
  363. X    c = *scan++;
  364. X    place = strchr(optstring, c);
  365. X
  366. X    if (place == NULL || c == ':') {
  367. X        fprintf(stderr, "%s: unknown option -%c\n", argv[0], c);
  368. X        return('?');
  369. X    }
  370. X
  371. X    place++;
  372. X    if (*place == ':') {
  373. X        if (*scan != '\0') {
  374. X            optarg = scan;
  375. X            scan = NULL;
  376. X        } else if (optind < argc) {
  377. X            optarg = argv[optind];
  378. X            optind++;
  379. X        } else {
  380. X            fprintf(stderr, "%s: -%c argument missing\n", argv[0], c);
  381. X            return('?');
  382. X        }
  383. X    }
  384. X
  385. X    return(c);
  386. X}
  387. X#endif NOGETOPT
  388. END_OF_FILE
  389. if test 1290 -ne `wc -c <'getopt.c'`; then
  390.     echo shar: \"'getopt.c'\" unpacked with wrong size!
  391. fi
  392. # end of 'getopt.c'
  393. fi
  394. if test -f 'latin-lt.tex' -a "${1}" != "-c" ; then 
  395.   echo shar: Will not clobber existing file \"'latin-lt.tex'\"
  396. else
  397. echo shar: Extracting \"'latin-lt.tex'\" \(1147 characters\)
  398. sed "s/^X//" >'latin-lt.tex' <<'END_OF_FILE'
  399. X% latin-lt.tex - TeX/LaTeX macros for Latin phrases and abbreviations
  400. X%
  401. X% Copyright 1989 Howard Lee Gayle
  402. X% This file is written in the ISO 8859/1 character set.
  403. X%
  404. X% $Header: latin-lt.tex,v 1.3 89/09/19 12:04:12 howard Exp $
  405. X%
  406. X% This program is free software; you can redistribute it and/or modify
  407. X% it under the terms of the GNU General Public License version 1,
  408. X% as published by the Free Software Foundation.
  409. X%
  410. X% This program is distributed in the hope that it will be useful,
  411. X% but WITHOUT ANY WARRANTY; without even the implied warranty of
  412. X% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  413. X% GNU General Public License for more details.
  414. X%
  415. X% You should have received a copy of the GNU General Public License
  416. X% along with this program; if not, write to the Free Software
  417. X% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  418. X\def \defacto {{\it de facto}\null}
  419. X\def \eg {{\it e.g.}\null}
  420. X\def \etal {{\it et al.}\null}
  421. X\def \etc {{\it etc.}\null}
  422. X\def \etcP {{\it etc}}% etc followed by end of sentence.
  423. X\def \ie {{\it i.e.}\null}
  424. X\def \perse {{\it per se}\null}
  425. X\def \vice {{\it vice versa}\null}
  426. X\def \vs {{\it vs.}\null}
  427. END_OF_FILE
  428. if test 1147 -ne `wc -c <'latin-lt.tex'`; then
  429.     echo shar: \"'latin-lt.tex'\" unpacked with wrong size!
  430. fi
  431. # end of 'latin-lt.tex'
  432. fi
  433. if test -f 'lnR.b' -a "${1}" != "-c" ; then 
  434.   echo shar: Will not clobber existing file \"'lnR.b'\"
  435. else
  436. echo shar: Extracting \"'lnR.b'\" \(1332 characters\)
  437. sed "s/^X//" >'lnR.b' <<'END_OF_FILE'
  438. X  
  439. X# lnR - shallow-copy subtree
  440. X#
  441. X# $Header: lnR.b,v 1.3 89/09/21 19:22:13 howard Exp $
  442. X#
  443. X# Copyright 1989 Howard Lee Gayle
  444. X# This file is written in the ISO 8859/1 character set.
  445. X#
  446. X# This program is free software; you can redistribute it and/or modify
  447. X# it under the terms of the GNU General Public License version 1,
  448. X# as published by the Free Software Foundation.
  449. X#
  450. X# This program is distributed in the hope that it will be useful,
  451. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  452. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  453. X# GNU General Public License for more details.
  454. X#
  455. X# You should have received a copy of the GNU General Public License
  456. X# along with this program; if not, write to the Free Software
  457. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  458. X#
  459. X# Shell variables:
  460. X# a - auxiliary command
  461. X# s - flag set for -s (symbolic link) option
  462. X# v - flag set for -v (verbose) option
  463. X# u - usage string
  464. X
  465. XCMDNAME=lnR
  466. Xexport CMDNAME
  467. Xu='Usage: $CMDNAME [-s] [-v] from to'
  468. Xa=lnR0
  469. Xs=' '
  470. Xv=0
  471. Xwhile [ $# -gt 2 ]
  472. Xdo
  473. X   case "x$1" in
  474. X      x-s) s='-s' ;;
  475. X      x-v) v='1'  ;;
  476. X      *) echo "$u" 1>&2; exit 1 ;;
  477. X   esac
  478. X   shift
  479. Xdone
  480. Xif [ $# -ne 2 ]
  481. Xthen
  482. X   echo "$u" 1>&2
  483. X   exit 1
  484. Xfi
  485. X$a "$s" "$v" "$1" "$2"
  486. Xcd "$1"
  487. Xfind . -print | sed -e '1d' -e 's;^\./;;' | xargs -i $a "$s" "$v" {} "$2/{}"
  488. END_OF_FILE
  489. if test 1332 -ne `wc -c <'lnR.b'`; then
  490.     echo shar: \"'lnR.b'\" unpacked with wrong size!
  491. fi
  492. # end of 'lnR.b'
  493. fi
  494. if test -f 'mkAr.b' -a "${1}" != "-c" ; then 
  495.   echo shar: Will not clobber existing file \"'mkAr.b'\"
  496. else
  497. echo shar: Extracting \"'mkAr.b'\" \(1012 characters\)
  498. sed "s/^X//" >'mkAr.b' <<'END_OF_FILE'
  499. X# mkAr.b - create a C function library
  500. X#
  501. X# $Header: mkAr.b,v 1.1 89/09/22 13:37:21 howard Exp $
  502. X#
  503. X# Copyright 1989 Howard Lee Gayle
  504. X# This file is written in the ISO 8859/1 character set.
  505. X# 
  506. X# This program is free software; you can redistribute it and/or modify
  507. X# it under the terms of the GNU General Public License version 1,
  508. X# as published by the Free Software Foundation.
  509. X# 
  510. X# This program is distributed in the hope that it will be useful,
  511. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  512. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  513. X# GNU General Public License for more details.
  514. X# 
  515. X# You should have received a copy of the GNU General Public License
  516. X# along with this program; if not, write to the Free Software
  517. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  518. X# 
  519. X# Shell variables:
  520. X# u - usage string
  521. X
  522. XCMDNAME=mkAr
  523. Xexport CMDNAME
  524. Xu="Usage: $CMDNAME library file.o..."
  525. Xif [ $# -lt 2 ]
  526. Xthen
  527. X   echo "$u" 1>&2
  528. X   exit 1
  529. Xfi
  530. Xar rc $* && ranlib $1 && chmod a=r $1
  531. END_OF_FILE
  532. if test 1012 -ne `wc -c <'mkAr.b'`; then
  533.     echo shar: \"'mkAr.b'\" unpacked with wrong size!
  534. fi
  535. # end of 'mkAr.b'
  536. fi
  537. if test -f 'mkCIncl.b' -a "${1}" != "-c" ; then 
  538.   echo shar: Will not clobber existing file \"'mkCIncl.b'\"
  539. else
  540. echo shar: Extracting \"'mkCIncl.b'\" \(1140 characters\)
  541. sed "s/^X//" >'mkCIncl.b' <<'END_OF_FILE'
  542. X  
  543. X# mkCIncl - find include file dependencies of C source files
  544. X#
  545. X# $Header: mkCIncl.b,v 1.3 89/09/21 19:22:21 howard Exp $
  546. X#
  547. X# Copyright 1989 Howard Lee Gayle
  548. X# This file is written in the ISO 8859/1 character set.
  549. X#
  550. X# This program is free software; you can redistribute it and/or modify
  551. X# it under the terms of the GNU General Public License version 1,
  552. X# as published by the Free Software Foundation.
  553. X#
  554. X# This program is distributed in the hope that it will be useful,
  555. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  556. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  557. X# GNU General Public License for more details.
  558. X#
  559. X# You should have received a copy of the GNU General Public License
  560. X# along with this program; if not, write to the Free Software
  561. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  562. X#
  563. X# Shell variables:
  564. X# f - steps through C source files
  565. X# i - -I options to cpp
  566. X# u - usage string
  567. X
  568. XCMDNAME=mkCIncl
  569. Xexport CMDNAME
  570. Xu='Usage: $CMDNAME includes file.c ...'
  571. Xif [ $# -lt 2 ]
  572. Xthen
  573. X   echo "$u" 1>&2
  574. X   exit 1
  575. Xfi
  576. Xi="$1"
  577. Xshift
  578. Xfor f
  579. Xdo
  580. X   /lib/cpp -M $i $f | sed -e 's;\.o: ;: ;'
  581. Xdone
  582. Xexit 0
  583. END_OF_FILE
  584. if test 1140 -ne `wc -c <'mkCIncl.b'`; then
  585.     echo shar: \"'mkCIncl.b'\" unpacked with wrong size!
  586. fi
  587. # end of 'mkCIncl.b'
  588. fi
  589. if test -f 'mkDistI.b' -a "${1}" != "-c" ; then 
  590.   echo shar: Will not clobber existing file \"'mkDistI.b'\"
  591. else
  592. echo shar: Extracting \"'mkDistI.b'\" \(1007 characters\)
  593. sed "s/^X//" >'mkDistI.b' <<'END_OF_FILE'
  594. X  
  595. X# mkDistI - install file from dist directory
  596. X#
  597. X# $Header: mkDistI.b,v 1.4 89/09/21 19:22:24 howard Exp $
  598. X#
  599. X# Copyright 1989 Howard Lee Gayle
  600. X# This file is written in the ISO 8859/1 character set.
  601. X#
  602. X# This program is free software; you can redistribute it and/or modify
  603. X# it under the terms of the GNU General Public License version 1,
  604. X# as published by the Free Software Foundation.
  605. X#
  606. X# This program is distributed in the hope that it will be useful,
  607. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  608. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  609. X# GNU General Public License for more details.
  610. X#
  611. X# You should have received a copy of the GNU General Public License
  612. X# along with this program; if not, write to the Free Software
  613. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  614. X#
  615. X# Shell variables:
  616. X# u - usage string
  617. XCMDNAME=mkDistI
  618. Xexport CMDNAME
  619. Xu='Usage: $CMDNAME file dist-directory'
  620. Xif [ $# -ne 2 ]
  621. Xthen
  622. X   echo "$u" 1>&2
  623. X   exit 1
  624. Xfi
  625. Xrm -f $1
  626. Xln -s $2/$1
  627. END_OF_FILE
  628. if test 1007 -ne `wc -c <'mkDistI.b'`; then
  629.     echo shar: \"'mkDistI.b'\" unpacked with wrong size!
  630. fi
  631. # end of 'mkDistI.b'
  632. fi
  633. if test -f 'mkDistO.b' -a "${1}" != "-c" ; then 
  634.   echo shar: Will not clobber existing file \"'mkDistO.b'\"
  635. else
  636. echo shar: Extracting \"'mkDistO.b'\" \(1004 characters\)
  637. sed "s/^X//" >'mkDistO.b' <<'END_OF_FILE'
  638. X  
  639. X# mkDistO - place file in dist directory
  640. X#
  641. X# $Header: mkDistO.b,v 1.3 89/09/21 19:22:26 howard Exp $
  642. X#
  643. X# Copyright 1989 Howard Lee Gayle
  644. X# This file is written in the ISO 8859/1 character set.
  645. X#
  646. X# This program is free software; you can redistribute it and/or modify
  647. X# it under the terms of the GNU General Public License version 1,
  648. X# as published by the Free Software Foundation.
  649. X#
  650. X# This program is distributed in the hope that it will be useful,
  651. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  652. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  653. X# GNU General Public License for more details.
  654. X#
  655. X# You should have received a copy of the GNU General Public License
  656. X# along with this program; if not, write to the Free Software
  657. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  658. X#
  659. X# Shell variables:
  660. X# u - usage string
  661. X
  662. XCMDNAME=mkDistO
  663. Xexport CMDNAME
  664. Xu='Usage: $CMDNAME file dist-directory'
  665. Xif [ $# -ne 2 ]
  666. Xthen
  667. X   echo "$u" 1>&2
  668. X   exit 1
  669. Xfi
  670. Xrm -f $2/$1
  671. Xln $1 $2
  672. END_OF_FILE
  673. if test 1004 -ne `wc -c <'mkDistO.b'`; then
  674.     echo shar: \"'mkDistO.b'\" unpacked with wrong size!
  675. fi
  676. # end of 'mkDistO.b'
  677. fi
  678. if test -f 'mkInstF.b' -a "${1}" != "-c" ; then 
  679.   echo shar: Will not clobber existing file \"'mkInstF.b'\"
  680. else
  681. echo shar: Extracting \"'mkInstF.b'\" \(1025 characters\)
  682. sed "s/^X//" >'mkInstF.b' <<'END_OF_FILE'
  683. X  
  684. X# mkInstF - install a non-executable file or shell file
  685. X#
  686. X# $Header: mkInstF.b,v 1.3 89/09/21 19:22:29 howard Exp $
  687. X#
  688. X# Copyright 1989 Howard Lee Gayle
  689. X# This file is written in the ISO 8859/1 character set.
  690. X#
  691. X# This program is free software; you can redistribute it and/or modify
  692. X# it under the terms of the GNU General Public License version 1,
  693. X# as published by the Free Software Foundation.
  694. X#
  695. X# This program is distributed in the hope that it will be useful,
  696. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  697. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  698. X# GNU General Public License for more details.
  699. X#
  700. X# You should have received a copy of the GNU General Public License
  701. X# along with this program; if not, write to the Free Software
  702. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  703. X#
  704. X# Shell variables:
  705. X# u - usage string
  706. X
  707. XCMDNAME=mkInstF
  708. Xexport CMDNAME
  709. Xu='Usage: $CMDNAME file directory'
  710. Xif [ $# -ne 2 ]
  711. Xthen
  712. X   echo "$u" 1>&2
  713. X   exit 1
  714. Xfi
  715. Xln $1 $2/$1N
  716. Xmv -f $2/$1N $2/$1
  717. END_OF_FILE
  718. if test 1025 -ne `wc -c <'mkInstF.b'`; then
  719.     echo shar: \"'mkInstF.b'\" unpacked with wrong size!
  720. fi
  721. # end of 'mkInstF.b'
  722. fi
  723. if test -f 'mkInstX.b' -a "${1}" != "-c" ; then 
  724.   echo shar: Will not clobber existing file \"'mkInstX.b'\"
  725. else
  726. echo shar: Extracting \"'mkInstX.b'\" \(1026 characters\)
  727. sed "s/^X//" >'mkInstX.b' <<'END_OF_FILE'
  728. X  
  729. X# mkInstX - install an executable file (not shell files)
  730. X#
  731. X# $Header: mkInstX.b,v 1.3 89/09/21 19:22:32 howard Exp $
  732. X#
  733. X# Copyright 1989 Howard Lee Gayle
  734. X# This file is written in the ISO 8859/1 character set.
  735. X#
  736. X# This program is free software; you can redistribute it and/or modify
  737. X# it under the terms of the GNU General Public License version 1,
  738. X# as published by the Free Software Foundation.
  739. X#
  740. X# This program is distributed in the hope that it will be useful,
  741. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  742. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  743. X# GNU General Public License for more details.
  744. X#
  745. X# You should have received a copy of the GNU General Public License
  746. X# along with this program; if not, write to the Free Software
  747. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  748. X#
  749. X# Shell variables:
  750. X# u - usage string
  751. X
  752. XCMDNAME=mkInstX
  753. Xexport CMDNAME
  754. Xu='Usage: $CMDNAME file directory'
  755. Xif [ $# -ne 2 ]
  756. Xthen
  757. X   echo "$u" 1>&2
  758. X   exit 1
  759. Xfi
  760. Xln $1 $2/$1N
  761. Xmv -f $2/$1N $2/$1
  762. END_OF_FILE
  763. if test 1026 -ne `wc -c <'mkInstX.b'`; then
  764.     echo shar: \"'mkInstX.b'\" unpacked with wrong size!
  765. fi
  766. # end of 'mkInstX.b'
  767. fi
  768. if test -f 'mkLaTeXPS.b' -a "${1}" != "-c" ; then 
  769.   echo shar: Will not clobber existing file \"'mkLaTeXPS.b'\"
  770. else
  771. echo shar: Extracting \"'mkLaTeXPS.b'\" \(1059 characters\)
  772. sed "s/^X//" >'mkLaTeXPS.b' <<'END_OF_FILE'
  773. X  
  774. X# mkLaTeX - format LaTeX file
  775. X#
  776. X# $Header: mkLaTeXPS.b,v 1.3 89/09/20 12:22:10 howard Exp $
  777. X#
  778. X# Copyright 1989 Howard Lee Gayle
  779. X# This file is written in the ISO 8859/1 character set.
  780. X#
  781. X# This program is free software; you can redistribute it and/or modify
  782. X# it under the terms of the GNU General Public License version 1,
  783. X# as published by the Free Software Foundation.
  784. X#
  785. X# This program is distributed in the hope that it will be useful,
  786. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  787. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  788. X# GNU General Public License for more details.
  789. X#
  790. X# You should have received a copy of the GNU General Public License
  791. X# along with this program; if not, write to the Free Software
  792. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  793. X#
  794. X# Shell variables:
  795. X# u - usage string
  796. X
  797. XCMDNAME=mkLaTeX
  798. Xexport CMDNAME
  799. Xu="Usage: $CMDNAME LaTeX-source-stem target"
  800. Xif [ $# -ne 2 ]
  801. Xthen
  802. X   echo "$u" 1>&2
  803. X   exit 1
  804. Xfi
  805. Xlatex $1.tex && bibtex $1 && latex $1.tex && latex $1.tex && dvi2ps $1.dvi > $2
  806. END_OF_FILE
  807. if test 1059 -ne `wc -c <'mkLaTeXPS.b'`; then
  808.     echo shar: \"'mkLaTeXPS.b'\" unpacked with wrong size!
  809. fi
  810. # end of 'mkLaTeXPS.b'
  811. fi
  812. if test -f 'mkLibIncl.b' -a "${1}" != "-c" ; then 
  813.   echo shar: Will not clobber existing file \"'mkLibIncl.b'\"
  814. else
  815. echo shar: Extracting \"'mkLibIncl.b'\" \(1128 characters\)
  816. sed "s/^X//" >'mkLibIncl.b' <<'END_OF_FILE'
  817. X  
  818. X# mkLibIncl - find include file dependencies of C library functions
  819. X#
  820. X# $Header: mkLibIncl.b,v 1.3 89/09/21 19:22:34 howard Exp $
  821. X#
  822. X# Copyright 1989 Howard Lee Gayle
  823. X# This file is written in the ISO 8859/1 character set.
  824. X#
  825. X# This program is free software; you can redistribute it and/or modify
  826. X# it under the terms of the GNU General Public License version 1,
  827. X# as published by the Free Software Foundation.
  828. X#
  829. X# This program is distributed in the hope that it will be useful,
  830. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  831. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  832. X# GNU General Public License for more details.
  833. X#
  834. X# You should have received a copy of the GNU General Public License
  835. X# along with this program; if not, write to the Free Software
  836. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  837. X#
  838. X# Shell variables:
  839. X# f - steps through C source files
  840. X# i - -I options to cpp
  841. X# u - usage string
  842. X
  843. XCMDNAME=mkLibIncl
  844. Xexport CMDNAME
  845. Xu='Usage: $CMDNAME includes file.c ...'
  846. Xif [ $# -lt 2 ]
  847. Xthen
  848. X   echo "$u" 1>&2
  849. X   exit 1
  850. Xfi
  851. Xi="$1"
  852. Xshift
  853. Xfor f
  854. Xdo
  855. X   /lib/cpp -M $i $f
  856. Xdone
  857. Xexit 0
  858. END_OF_FILE
  859. if test 1128 -ne `wc -c <'mkLibIncl.b'`; then
  860.     echo shar: \"'mkLibIncl.b'\" unpacked with wrong size!
  861. fi
  862. # end of 'mkLibIncl.b'
  863. fi
  864. if test -f 'mkManPS.b' -a "${1}" != "-c" ; then 
  865.   echo shar: Will not clobber existing file \"'mkManPS.b'\"
  866. else
  867. echo shar: Extracting \"'mkManPS.b'\" \(1023 characters\)
  868. sed "s/^X//" >'mkManPS.b' <<'END_OF_FILE'
  869. X  
  870. X# mkManPS - format manual entry into PostScript
  871. X#
  872. X# $Header: mkManPS.b,v 1.3 89/09/21 19:22:39 howard Exp $
  873. X#
  874. X# Copyright 1989 Howard Lee Gayle
  875. X# This file is written in the ISO 8859/1 character set.
  876. X#
  877. X# This program is free software; you can redistribute it and/or modify
  878. X# it under the terms of the GNU General Public License version 1,
  879. X# as published by the Free Software Foundation.
  880. X#
  881. X# This program is distributed in the hope that it will be useful,
  882. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  883. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  884. X# GNU General Public License for more details.
  885. X#
  886. X# You should have received a copy of the GNU General Public License
  887. X# along with this program; if not, write to the Free Software
  888. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  889. X#
  890. X# Shell variables:
  891. X# d - font file
  892. X# u - usage string
  893. X
  894. XCMDNAME=mkManPS
  895. Xexport CMDNAME
  896. Xu='Usage: $CMDNAME troff-file'
  897. Xif [ $# -ne 1 ]
  898. Xthen
  899. X   echo "$u" 1>&2
  900. X   exit 1
  901. Xfi
  902. Xptroff -t -man $1 | psrev
  903. END_OF_FILE
  904. if test 1023 -ne `wc -c <'mkManPS.b'`; then
  905.     echo shar: \"'mkManPS.b'\" unpacked with wrong size!
  906. fi
  907. # end of 'mkManPS.b'
  908. fi
  909. if test -f 'mkSpellLT.b' -a "${1}" != "-c" ; then 
  910.   echo shar: Will not clobber existing file \"'mkSpellLT.b'\"
  911. else
  912. echo shar: Extracting \"'mkSpellLT.b'\" \(990 characters\)
  913. sed "s/^X//" >'mkSpellLT.b' <<'END_OF_FILE'
  914. X  
  915. X# mkSpellLT - spell-check LaTeX source
  916. X#
  917. X# $Header: mkSpellLT.b,v 1.2 89/09/20 12:22:20 howard Exp $
  918. X#
  919. X# Copyright 1989 Howard Lee Gayle
  920. X# This file is written in the ISO 8859/1 character set.
  921. X#
  922. X# This program is free software; you can redistribute it and/or modify
  923. X# it under the terms of the GNU General Public License version 1,
  924. X# as published by the Free Software Foundation.
  925. X#
  926. X# This program is distributed in the hope that it will be useful,
  927. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  928. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  929. X# GNU General Public License for more details.
  930. X#
  931. X# You should have received a copy of the GNU General Public License
  932. X# along with this program; if not, write to the Free Software
  933. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  934. X#
  935. X# Shell variables:
  936. X# u - usage string
  937. X
  938. XCMDNAME=mkSpellLT
  939. Xexport CMDNAME
  940. Xu="Usage: $CMDNAME file"
  941. Xif [ $# -ne 1 ]
  942. Xthen
  943. X   echo "$u" 1>&2
  944. X   exit 1
  945. Xfi
  946. Xdetex -i $1 | spell
  947. END_OF_FILE
  948. if test 990 -ne `wc -c <'mkSpellLT.b'`; then
  949.     echo shar: \"'mkSpellLT.b'\" unpacked with wrong size!
  950. fi
  951. # end of 'mkSpellLT.b'
  952. fi
  953. if test -f 'mkUncmprs.b' -a "${1}" != "-c" ; then 
  954.   echo shar: Will not clobber existing file \"'mkUncmprs.b'\"
  955. else
  956. echo shar: Extracting \"'mkUncmprs.b'\" \(1072 characters\)
  957. sed "s/^X//" >'mkUncmprs.b' <<'END_OF_FILE'
  958. X  
  959. X# mkUncmprs - uncompress RCS file if necessary and check out
  960. X#
  961. X# $Header: mkUncmprs.b,v 1.3 89/09/21 19:22:42 howard Exp $
  962. X#
  963. X# Copyright 1989 Howard Lee Gayle
  964. X# This file is written in the ISO 8859/1 character set.
  965. X#
  966. X# This program is free software; you can redistribute it and/or modify
  967. X# it under the terms of the GNU General Public License version 1,
  968. X# as published by the Free Software Foundation.
  969. X#
  970. X# This program is distributed in the hope that it will be useful,
  971. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  972. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  973. X# GNU General Public License for more details.
  974. X#
  975. X# You should have received a copy of the GNU General Public License
  976. X# along with this program; if not, write to the Free Software
  977. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  978. X#
  979. X# Shell variables:
  980. X# u - usage string
  981. X
  982. XCMDNAME=mkUncmprs
  983. Xexport CMDNAME
  984. Xu='Usage: $CMDNAME target'
  985. Xif [ $# -ne 1 ]
  986. Xthen
  987. X   echo "$u" 1>&2
  988. X   exit 1
  989. Xfi
  990. Xif [ -r RCS/$1,v.Z ]
  991. Xthen
  992. X   uncompress RCS/$1,v.Z
  993. X   co $1
  994. Xelse
  995. X   exit 1
  996. Xfi
  997. END_OF_FILE
  998. if test 1072 -ne `wc -c <'mkUncmprs.b'`; then
  999.     echo shar: \"'mkUncmprs.b'\" unpacked with wrong size!
  1000. fi
  1001. # end of 'mkUncmprs.b'
  1002. fi
  1003. if test -f 'new-bib.b' -a "${1}" != "-c" ; then 
  1004.   echo shar: Will not clobber existing file \"'new-bib.b'\"
  1005. else
  1006. echo shar: Extracting \"'new-bib.b'\" \(1265 characters\)
  1007. sed "s/^X//" >'new-bib.b' <<'END_OF_FILE'
  1008. X  
  1009. X# new-bib.b - create a new BibTeX source file from a prototype
  1010. X#
  1011. X# $Header: new-bib.b,v 1.1 89/09/21 11:03:58 howard Exp $
  1012. X#
  1013. X# Copyright 1989 Howard Lee Gayle
  1014. X# This file is written in the ISO 8859/1 character set.
  1015. X#
  1016. X# This program is free software; you can redistribute it and/or modify
  1017. X# it under the terms of the GNU General Public License version 1,
  1018. X# as published by the Free Software Foundation.
  1019. X#
  1020. X# This program is distributed in the hope that it will be useful,
  1021. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1022. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1023. X# GNU General Public License for more details.
  1024. X#
  1025. X# You should have received a copy of the GNU General Public License
  1026. X# along with this program; if not, write to the Free Software
  1027. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1028. X#
  1029. X# Shell variables:
  1030. X# c - '%'
  1031. X# d - '$'
  1032. X# f - steps through files to create
  1033. X# u - usage string
  1034. X
  1035. XCMDNAME=new-bib
  1036. Xexport CMDNAME
  1037. Xu="Usage: $CMDNAME file..."
  1038. Xif [ $# -eq 0 ]
  1039. Xthen
  1040. X   echo "$u" 1>&2
  1041. X   exit 1
  1042. Xfi
  1043. Xc='%'
  1044. Xd='$'
  1045. Xfor f
  1046. Xdo
  1047. X   cat << EOF > "$f"
  1048. X$c $f - BibTeX bibliography file for 
  1049. X$c
  1050. X$c ${d}Header$d
  1051. X$c
  1052. XEOF
  1053. X   if [ "$NEWTEXTPATH" ]
  1054. X   then
  1055. X      cat-path "$NEWTEXTPATH" new.txt | sed -e "s;^;$c ;" >> "$f"
  1056. X   fi
  1057. Xdone
  1058. END_OF_FILE
  1059. if test 1265 -ne `wc -c <'new-bib.b'`; then
  1060.     echo shar: \"'new-bib.b'\" unpacked with wrong size!
  1061. fi
  1062. # end of 'new-bib.b'
  1063. fi
  1064. if test -f 'new-el.b' -a "${1}" != "-c" ; then 
  1065.   echo shar: Will not clobber existing file \"'new-el.b'\"
  1066. else
  1067. echo shar: Extracting \"'new-el.b'\" \(1238 characters\)
  1068. sed "s/^X//" >'new-el.b' <<'END_OF_FILE'
  1069. X  
  1070. X# new-el.b - create a new elisp source file from a prototype
  1071. X#
  1072. X# $Header: new-el.b,v 1.1 89/09/21 18:19:01 howard Exp $
  1073. X#
  1074. X# Copyright 1989 Howard Lee Gayle
  1075. X# This file is written in the ISO 8859/1 character set.
  1076. X#
  1077. X# This program is free software; you can redistribute it and/or modify
  1078. X# it under the terms of the GNU General Public License version 1,
  1079. X# as published by the Free Software Foundation.
  1080. X#
  1081. X# This program is distributed in the hope that it will be useful,
  1082. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1083. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1084. X# GNU General Public License for more details.
  1085. X#
  1086. X# You should have received a copy of the GNU General Public License
  1087. X# along with this program; if not, write to the Free Software
  1088. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1089. X#
  1090. X# Shell variables:
  1091. X# c - ';;'
  1092. X# d - '$'
  1093. X# f - steps through files to create
  1094. X# u - usage string
  1095. X
  1096. XCMDNAME=new-el
  1097. Xexport CMDNAME
  1098. Xu="Usage: $CMDNAME file..."
  1099. Xif [ $# -eq 0 ]
  1100. Xthen
  1101. X   echo "$u" 1>&2
  1102. X   exit 1
  1103. Xfi
  1104. Xc=';;'
  1105. Xd='$'
  1106. Xfor f
  1107. Xdo
  1108. X   cat << EOF > "$f"
  1109. X$c $f - 
  1110. X$c
  1111. X$c ${d}Header$d
  1112. X$c
  1113. XEOF
  1114. X   if [ "$NEWTEXTPATH" ]
  1115. X   then
  1116. X      cat-path "$NEWTEXTPATH" new.txt | sed -e "s/^/$c /" >> "$f"
  1117. X   fi
  1118. XEOF
  1119. Xdone
  1120. END_OF_FILE
  1121. if test 1238 -ne `wc -c <'new-el.b'`; then
  1122.     echo shar: \"'new-el.b'\" unpacked with wrong size!
  1123. fi
  1124. # end of 'new-el.b'
  1125. fi
  1126. if test -f 'new-h.b' -a "${1}" != "-c" ; then 
  1127.   echo shar: Will not clobber existing file \"'new-h.b'\"
  1128. else
  1129. echo shar: Extracting \"'new-h.b'\" \(1280 characters\)
  1130. sed "s/^X//" >'new-h.b' <<'END_OF_FILE'
  1131. X  
  1132. X# new-h.b - create a new C include file from a prototype
  1133. X#
  1134. X# $Header: new-h.b,v 1.1 89/09/21 18:25:40 howard Exp $
  1135. X#
  1136. X# Copyright 1989 Howard Lee Gayle
  1137. X# This file is written in the ISO 8859/1 character set.
  1138. X#
  1139. X# This program is free software; you can redistribute it and/or modify
  1140. X# it under the terms of the GNU General Public License version 1,
  1141. X# as published by the Free Software Foundation.
  1142. X#
  1143. X# This program is distributed in the hope that it will be useful,
  1144. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1145. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1146. X# GNU General Public License for more details.
  1147. X#
  1148. X# You should have received a copy of the GNU General Public License
  1149. X# along with this program; if not, write to the Free Software
  1150. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1151. X#
  1152. X# Shell variables:
  1153. X# c - ' *'
  1154. X# d - '$'
  1155. X# f - steps through files to create
  1156. X# u - usage string
  1157. X
  1158. XCMDNAME=new-h
  1159. Xexport CMDNAME
  1160. Xu="Usage: $CMDNAME file..."
  1161. Xif [ $# -eq 0 ]
  1162. Xthen
  1163. X   echo "$u" 1>&2
  1164. X   exit 1
  1165. Xfi
  1166. Xc=' *'
  1167. Xd='$'
  1168. Xfor f
  1169. Xdo
  1170. X   cat << EOF > "$f"
  1171. X/*
  1172. X$c $f - 
  1173. X$c
  1174. X$c ${d}Header$d
  1175. X$c
  1176. XEOF
  1177. X   if [ "$NEWTEXTPATH" ]
  1178. X   then
  1179. X      cat-path "$NEWTEXTPATH" new.txt | sed -e "s;^;$c ;" >> "$f"
  1180. X   fi
  1181. X   cat << EOF >> "$f"
  1182. X$c Prerequisites: 
  1183. X */
  1184. XEOF
  1185. Xdone
  1186. END_OF_FILE
  1187. if test 1280 -ne `wc -c <'new-h.b'`; then
  1188.     echo shar: \"'new-h.b'\" unpacked with wrong size!
  1189. fi
  1190. # end of 'new-h.b'
  1191. fi
  1192. if test -f 'new.b' -a "${1}" != "-c" ; then 
  1193.   echo shar: Will not clobber existing file \"'new.b'\"
  1194. else
  1195. echo shar: Extracting \"'new.b'\" \(1430 characters\)
  1196. sed "s/^X//" >'new.b' <<'END_OF_FILE'
  1197. X  
  1198. X# new.b - create a new source file from a prototype
  1199. X#
  1200. X# $Header: new.b,v 1.1 89/09/21 08:00:39 howard Exp $
  1201. X#
  1202. X# Copyright 1989 Howard Lee Gayle
  1203. X# This file is written in the ISO 8859/1 character set.
  1204. X#
  1205. X# This program is free software; you can redistribute it and/or modify
  1206. X# it under the terms of the GNU General Public License version 1,
  1207. X# as published by the Free Software Foundation.
  1208. X#
  1209. X# This program is distributed in the hope that it will be useful,
  1210. X# but WITHOUT ANY WARRANTY; without even the implied warranty of
  1211. X# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1212. X# GNU General Public License for more details.
  1213. X#
  1214. X# You should have received a copy of the GNU General Public License
  1215. X# along with this program; if not, write to the Free Software
  1216. X# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1217. X#
  1218. X# Shell variables:
  1219. X# f - steps through files to create
  1220. X# s - file suffix
  1221. X# u - usage string
  1222. X
  1223. XCMDNAME=new
  1224. Xexport CMDNAME
  1225. Xu="Usage: $CMDNAME file..."
  1226. Xif [ $# -eq 0 ]
  1227. Xthen
  1228. X   echo "$u" 1>&2
  1229. X   exit 1
  1230. Xfi
  1231. Xfor f
  1232. Xdo
  1233. X   if [ -r "$f" ]
  1234. X   then
  1235. X      echo "$CMDNAME: $f already exists" 1>&2
  1236. X   else
  1237. X      case "$f" in
  1238. X         MakeCommon) new-MakeC "$f" ;;
  1239. X         Makefile)   new-Make  "$f" ;;
  1240. X         uMakefile)  new-uMake "$f" ;;
  1241. X         *.*)
  1242. X            s=`basename "$f" | sed -e 's;^..*\.;;'`
  1243. X            new-"$s" "$f"
  1244. X            ;;
  1245. X         *) echo "$CMDNAME: $f: no suffix" 1>&2
  1246. X      esac
  1247. X   fi
  1248. Xdone
  1249. END_OF_FILE
  1250. if test 1430 -ne `wc -c <'new.b'`; then
  1251.     echo shar: \"'new.b'\" unpacked with wrong size!
  1252. fi
  1253. # end of 'new.b'
  1254. fi
  1255. if test -f 'smp.h' -a "${1}" != "-c" ; then 
  1256.   echo shar: Will not clobber existing file \"'smp.h'\"
  1257. else
  1258. echo shar: Extracting \"'smp.h'\" \(1420 characters\)
  1259. sed "s/^X//" >'smp.h' <<'END_OF_FILE'
  1260. X/*
  1261. X * smp.h - Include file for simple multiple precision (SMP) system
  1262. X *
  1263. X * Copyright 1989 Howard Lee Gayle
  1264. X *
  1265. X * $Header: smp.h,v 1.2 89/08/15 14:31:10 howard Exp $
  1266. X *
  1267. X * This program is free software; you can redistribute it and/or modify
  1268. X * it under the terms of the GNU General Public License version 1,
  1269. X * as published by the Free Software Foundation.
  1270. X *
  1271. X * This program is distributed in the hope that it will be useful,
  1272. X * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1273. X * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1274. X * GNU General Public License for more details.
  1275. X *
  1276. X * You should have received a copy of the GNU General Public License
  1277. X * along with this program; if not, write to the Free Software
  1278. X * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1279. X *
  1280. X * Prerequisites: howard/port.h, howard/simultipre.h.
  1281. X */
  1282. X
  1283. X/* Fixed positions at the beginning of a digit table: */
  1284. X#define DT_IGN  0 /* Characters to ignore.*/
  1285. X#define DT_PLUS 1 /* Positive signs.*/
  1286. X#define DT_NEG  2 /* Negative signs.*/
  1287. X#define DT_RADP 3 /* Radix point.*/
  1288. X#define DT_ZERO 4 /* Digit zero.*/
  1289. X
  1290. Xtypedef unsigned smpElT; /* One SMP element.*/
  1291. X
  1292. Xtypedef struct
  1293. X   {
  1294. X   smpElT smp_el[SMPNEL]; /* Array of elements.*/
  1295. X   boolT  smp_neg; /* Negative sign.*/
  1296. X   } smpT;
  1297. X
  1298. XPUBLIC int   a2smp();
  1299. XPUBLIC int   smp2l();
  1300. XPUBLIC int   smp2ul();
  1301. XPUBLIC int   smp2u();
  1302. XPUBLIC boolT smpdig();
  1303. XPUBLIC int   smpdtl();
  1304. END_OF_FILE
  1305. if test 1420 -ne `wc -c <'smp.h'`; then
  1306.     echo shar: \"'smp.h'\" unpacked with wrong size!
  1307. fi
  1308. # end of 'smp.h'
  1309. fi
  1310. if test -f 'unix-lt.tex' -a "${1}" != "-c" ; then 
  1311.   echo shar: Will not clobber existing file \"'unix-lt.tex'\"
  1312. else
  1313. echo shar: Extracting \"'unix-lt.tex'\" \(1072 characters\)
  1314. sed "s/^X//" >'unix-lt.tex' <<'END_OF_FILE'
  1315. X% unix-lt.tex - LaTeX macro to keep ATT lawyers happy
  1316. X%
  1317. X% Copyright 1989 Howard Lee Gayle
  1318. X% This file is written in the ISO 8859/1 character set.
  1319. X%
  1320. X% $Header: unix-lt.tex,v 1.1 89/08/28 19:15:46 howard Exp $
  1321. X%
  1322. X% This program is free software; you can redistribute it and/or modify
  1323. X% it under the terms of the GNU General Public License version 1,
  1324. X% as published by the Free Software Foundation.
  1325. X%
  1326. X% This program is distributed in the hope that it will be useful,
  1327. X% but WITHOUT ANY WARRANTY; without even the implied warranty of
  1328. X% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1329. X% GNU General Public License for more details.
  1330. X%
  1331. X% You should have received a copy of the GNU General Public License
  1332. X% along with this program; if not, write to the Free Software
  1333. X% Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1334. X\def \hgUNIX {UNIX}
  1335. X\def \hgUNIXFootnote {\hgUNIX \footnote
  1336. X   {\hgUNIX\ is a registered trademark of AT\&T Bell
  1337. X   Laboratories in many countries.}}
  1338. X\def \hgFirstUNIX {\hgUNIXFootnote \global \let \UNIX = \hgUNIX}
  1339. X\let \UNIX = \hgFirstUNIX
  1340. END_OF_FILE
  1341. if test 1072 -ne `wc -c <'unix-lt.tex'`; then
  1342.     echo shar: \"'unix-lt.tex'\" unpacked with wrong size!
  1343. fi
  1344. # end of 'unix-lt.tex'
  1345. fi
  1346. if test -f 'version.h' -a "${1}" != "-c" ; then 
  1347.   echo shar: Will not clobber existing file \"'version.h'\"
  1348. else
  1349. echo shar: Extracting \"'version.h'\" \(415 characters\)
  1350. sed "s/^X//" >'version.h' <<'END_OF_FILE'
  1351. X/* version - define and initialize version string for malf() and usage()
  1352. X *
  1353. X * $Header: version.h,v 1.3 89/03/17 15:33:37 howard Exp $
  1354. X *
  1355. X * Prerequisites: howard/port.h.
  1356. X */
  1357. X
  1358. X/* Version string for main program.*/
  1359. X#define MAINVER(x) bStrT _progn = ((bStrT)(x))
  1360. X
  1361. X/* Version string for modules and library functions.*/
  1362. X#ifdef lint
  1363. X#define MODVER(x)
  1364. X#else lint
  1365. X#define MODVER(x) static byteT _modver[] = x
  1366. X#endif lint
  1367. END_OF_FILE
  1368. if test 415 -ne `wc -c <'version.h'`; then
  1369.     echo shar: \"'version.h'\" unpacked with wrong size!
  1370. fi
  1371. # end of 'version.h'
  1372. fi
  1373. if test -f 'year.h' -a "${1}" != "-c" ; then 
  1374.   echo shar: Will not clobber existing file \"'year.h'\"
  1375. else
  1376. echo shar: Extracting \"'year.h'\" \(1244 characters\)
  1377. sed "s/^X//" >'year.h' <<'END_OF_FILE'
  1378. X/*
  1379. X * year.h - some definitions for calendars
  1380. X *
  1381. X * Copyright 1989 Howard Lee Gayle
  1382. X *
  1383. X * $Header: year.h,v 1.2 89/08/14 09:54:12 howard Exp $
  1384. X *
  1385. X * This program is free software; you can redistribute it and/or modify
  1386. X * it under the terms of the GNU General Public License version 1,
  1387. X * as published by the Free Software Foundation.
  1388. X *
  1389. X * This program is distributed in the hope that it will be useful,
  1390. X * but WITHOUT ANY WARRANTY; without even the implied warranty of
  1391. X * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1392. X * GNU General Public License for more details.
  1393. X *
  1394. X * You should have received a copy of the GNU General Public License
  1395. X * along with this program; if not, write to the Free Software
  1396. X * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  1397. X */
  1398. X
  1399. X/* The following macro has the value TRUE iff the year y is a leap year.
  1400. X * The rule for Gregorian calendar leap years is that multiples of 4 are,
  1401. X * except multiples of 100 aren't, except multiples of 400 are.
  1402. X * It has been proposed that multiples of 2000 shouldn't be.*/
  1403. X#define LEAPYEAR(y) ((((y)%400)==0) || ((((y)%4)==0) && (((y)%100)!=0)))
  1404. X
  1405. X/* The following macro gives the number of days in the year y.*/
  1406. X#define YEARSIZE(y) (LEAPYEAR (y) ? 366 : 365)
  1407. END_OF_FILE
  1408. if test 1244 -ne `wc -c <'year.h'`; then
  1409.     echo shar: \"'year.h'\" unpacked with wrong size!
  1410. fi
  1411. # end of 'year.h'
  1412. fi
  1413. echo shar: End of archive 9 \(of 9\).
  1414. cp /dev/null ark9isdone
  1415. MISSING=""
  1416. for I in 1 2 3 4 5 6 7 8 9 ; do
  1417.     if test ! -f ark${I}isdone ; then
  1418.     MISSING="${MISSING} ${I}"
  1419.     fi
  1420. done
  1421. if test "${MISSING}" = "" ; then
  1422.     echo You have unpacked all 9 archives.
  1423.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1424. else
  1425.     echo You still need to unpack the following archives:
  1426.     echo "        " ${MISSING}
  1427. fi
  1428. ##  End of shell archive.
  1429. exit 0
  1430.  
  1431.